<template>
  <div class="home">
    <h2>home页面</h2>
    <ul>
      <template v-for="item in banners" :key="item.acm">
        <li>{{ item.title }}</li>
      </template>
    </ul>
  </div>
</template>

<script setup>
import { storeToRefs } from 'pinia'
import useHome from '@/stores/home'
const homeStore = useHome()
homeStore.fetchHomeMultidata()
const { banners } = storeToRefs(homeStore)
console.log(homeStore.banners)
</script>

<style scoped></style>
